{{extend name="user/index" /}}

{{block name="title"}}
<body data-type="widgets">
<script src="/static/admin/js/theme.js"></script>
<div class="am-g tpl-g">
{{/block}}

    {{block name="content"}}

    <!-- 内容区域 -->
    <div class="tpl-content-wrapper">

        <div class="container-fluid am-cf">
            <div class="row">
                <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                    <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 编辑菜品
                        <small> </small>
                    </div>
                    <p class="page-header-description">Amaze UI 有许多不同的表格可用。</p>
                </div>
                <div class="am-u-lg-3 tpl-index-settings-button">
                    <button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置
                    </button>
                </div>
            </div>

        </div>

        <div class="row-content am-cf">


            <div class="row">

                <div class="am-u-sm-10 am-u-md-10 am-u-lg-10">
                    <div class="widget am-cf">
                        <div class="widget-head am-cf">
                            <div class="widget-title am-fl">边框表单</div>
                            <div class="widget-function am-fr">
                                <a href="javascript:;" class="am-icon-cog"></a>
                            </div>
                        </div>
                        <div class="widget-body am-fr">
                            <form class="am-form tpl-form-border-form tpl-form-border-br" action="{{:url('admin/GoodsController/update',['id'=>$id])}}" method="post" enctype="multipart/form-data">
                                <input type="hidden" name="_method" value="PUT" >
                                <input type="hidden" name="id" value="{{$id}}">
                                <div class="am-form-group">
                                    <!-- <label for="user-weibo" class="am-u-sm-3 am-form-label">封面图 <span class="tpl-form-line-small-title">Images</span></label> -->
                                    <div class="am-u-sm-9">
                                        <div class="am-form-group am-form-file" style="margin-left:100px">
                                            <div class="tpl-form-file-img">
                                                <img src="{{$data['pictrue']}}" alt="" width="150" height="100" > 
                                            </div>
                                            <button type="button" class="am-btn am-btn-danger am-btn-sm">
                                                <i class="am-icon-cloud-upload"></i> 修改菜品图片
                                            </button>
                                            <input id="doc-form-file" type="file" multiple="" name="icon">
                                        </div>

                                    </div>
                                </div> 
                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label"> 菜品名<span
                                            class="tpl-form-line-small-title">name</span></label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="tpl-form-input" name="name"
                                               value="{{$data['name']}}">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label"> 菜品描述<span
                                            class="tpl-form-line-small-title">remark</span></label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="tpl-form-input" name="details"
                                               value="{{$data['details']}}">
                                    </div>
                                </div>

                                <div class="am-form-group">
                                    <label for="user-name" class="am-u-sm-3 am-form-label"> 菜品价格<span
                                            class="tpl-form-line-small-title">remark</span></label>
                                    <div class="am-u-sm-9">
                                        <input type="text" class="tpl-form-input" name="price"
                                               value="{{$data['price']}}">
                                    </div>
                                </div>
                                
                                <div class="am-form-group">
                                    <div class="am-u-sm-9">
                                        
                                    </div>
                                </div>


                                <div class="am-form-group">
                                    <div class="am-u-sm-9 am-u-sm-push-3">
                                        <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {{/block}}